<#macro pagerbar form>
	<!--#################### 分页######################-->
	<nav class="navbar navbar-default" role="navigation">
  		<div class="collapse navbar-collapse" >
  		  	<ul class="nav navbar-nav">
	     		<li><a href="javascript:void(0);" onclick="toPage(1)">首页</a></li>
  				<li><a href="javascript:void(0);" onclick="toPage(${page.getPrePage()})">上一页</a></li>
    			<li><a href="javascript:void(0);" onclick="toPage(${page.getNextPage()})">下一页</a></li>
    			<li><a href="javascript:void(0);" onclick="toPage(${page.getTotalPage()})">尾页</a></li>
    		</ul>
    		<ul class="nav navbar-nav">
      		<li style='padding-top:15px;padding-bottom:15px'>
		       	<input type="text" length="5" value="${page.pageNo}" name="pageNo" id="pageNo" style="width:50px" maxlength="5" onkeyup="this.value=this.value.replace(/\D/g,'');" id="pageNo" />
       			页/${page.getTotalPage()}页,共${page.getTotalCount()}条,每页
       			<input type="text"  length="5" value="${page.pageSize}" name="pageSize" onkeyup="this.value=this.value.replace(/\D/g,'');"  id="pageSize" style="width:50px" maxlength="3" id="pageSize" value="12"/>
      		</li>
      		<li style='padding-top:12px;padding-bottom:12px;padding-left:10px'>
      			<button  class="btn btn-default"  id="btnToPage">转</button>
      		</li>
      		</ul>
      		
  		</div><!-- /.navbar-collapse -->	  
	</nav>
	<script type="text/javascript">
		function toPage(pageNo)
		{
			$('#pageNo').val(pageNo);
			$('#${form}').submit();
			
		}
		$('#${form} tr').on('click',function(event){
			if($('th',$(this)).length>0&&event.target.type!="checkbox")
				return false;
			if(event.target.type!="checkbox")
				$('input[type=checkbox]',$(this)).click();
		});
	</script>
	<!--##########################################-->

</#macro>